package com.motus.pm.vo;

/**
 * PmProjectMeetingId entity. @author MyEclipse Persistence Tools
 */

public class PmProjectMeetingId implements java.io.Serializable {

	// Fields

	private PmProjectInfo pmProjectInfo;
	private PmMeetingInfo pmMeetingInfo;

	// Constructors

	/** default constructor */
	public PmProjectMeetingId() {
	}

	/** full constructor */
	public PmProjectMeetingId(PmProjectInfo pmProjectInfo,
			PmMeetingInfo pmMeetingInfo) {
		this.pmProjectInfo = pmProjectInfo;
		this.pmMeetingInfo = pmMeetingInfo;
	}

	// Property accessors

	public PmProjectInfo getPmProjectInfo() {
		return this.pmProjectInfo;
	}

	public void setPmProjectInfo(PmProjectInfo pmProjectInfo) {
		this.pmProjectInfo = pmProjectInfo;
	}

	public PmMeetingInfo getPmMeetingInfo() {
		return this.pmMeetingInfo;
	}

	public void setPmMeetingInfo(PmMeetingInfo pmMeetingInfo) {
		this.pmMeetingInfo = pmMeetingInfo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PmProjectMeetingId))
			return false;
		PmProjectMeetingId castOther = (PmProjectMeetingId) other;

		return ((this.getPmProjectInfo() == castOther.getPmProjectInfo()) || (this
				.getPmProjectInfo() != null
				&& castOther.getPmProjectInfo() != null && this
				.getPmProjectInfo().equals(castOther.getPmProjectInfo())))
				&& ((this.getPmMeetingInfo() == castOther.getPmMeetingInfo()) || (this
						.getPmMeetingInfo() != null
						&& castOther.getPmMeetingInfo() != null && this
						.getPmMeetingInfo()
						.equals(castOther.getPmMeetingInfo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getPmProjectInfo() == null ? 0 : this.getPmProjectInfo()
						.hashCode());
		result = 37
				* result
				+ (getPmMeetingInfo() == null ? 0 : this.getPmMeetingInfo()
						.hashCode());
		return result;
	}

}